package com.xiaoke.api.service;

import com.xiaoke.entity.Region;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@FeignClient("service")
public interface RegionService {

    @GetMapping("/region/findByParent")
    List<Region> findByParent(@RequestParam("parentId") Integer parentId);
}
